import request from '@/utils/request.ts'
import { ResponseData } from '@/pojo/system/ResponseData.ts'

enum API {
  TEST_RUNTIME = '/test/err/runtime',
  TEST_BUSINESS = '/test/err/business',
}

export const testRuntime = () =>
  request.get<any, ResponseData<string>>(API.TEST_RUNTIME)

export const testBusiness = () =>
  request.get<any, ResponseData<string>>(API.TEST_BUSINESS)
